/**
 * @description sequelize 同步数据库
 * **/

const seq = require('./seq')


require('./model/index')

seq.authenticate({force: true}).then(res => {
  console.log('auth ok')
}).catch(err => {
  console.log('auth error: ', err)
})

seq.sync({force: true}).then( res => {
  console.log('sync ok')
  process.exit()
}).catch(err => {
  console.log('sync err', err)
})
